<template>
  <div>
    <label v-for="r in pval"  :key="r.value"  >
      <input  type="radio" v-model="val" :value="r.value">{{r.label}}
    </label>
  </div>
</template>
<script>
export default {
  name: "Child3",
  props:{
    pval:{
      type:Array,
      default:()=>[]

    },
    value:{
      type:Number
    }
  },
  data(){
    return{
      val: this.value
    }
  },
  watch:{
    val(nval){
      this.$emit("input", nval)
    }
  }
}
</script>



<style scoped lang="scss">

</style>
